package model.interfaces;



public abstract class Objective {
	protected Node objective;
	
	public Objective(Node objective) {
		this.objective = objective;
	}
	
	/**
	 * Method to be executed by a Session if the objective is achieved.
	 */
	public abstract void execute();
	
	public Node getObjective() {
		return objective;
	}

	public boolean isAchieved() {
		return objective.verify();
	}

}
